
#include <stdio.h>
#include <time.h>

char *get_timestamp(void)
{
    static char buf[32];
    time_t now;
    struct tm *local;

    now = time(NULL);
    local = localtime(&now);
    strftime(buf, sizeof(buf), "%y-%m-%d %H:%M:%S", local);

    return buf;
}
